using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OpenPanekitEditor.Forms
{
    public partial class SettingForm : Form
    {
        public string PluginFolder {
            get { return textBox1.Text; }
            set { textBox1.Text = value; }
        }
        public int PhysicsUpdateRate
        {
            get { return Decimal.ToInt32(numericUpDown1.Value); }
            set { numericUpDown1.Value = new Decimal(value); }
        }
        public SettingForm()
        {
            InitializeComponent();
        }

        private void OpenFolder_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.FolderBrowserDialog fb = new FolderBrowserDialog();
            fb.SelectedPath = PluginFolder;
            if (fb.ShowDialog() == DialogResult.OK)
            {
                PluginFolder = fb.SelectedPath;
            }
        }
    }
}